package com.alpha.eceasy.mall.api.vo;

import com.alpha.eceasy.mall.api.entity.MallDemand;
import com.alpha.eceasy.mall.api.entity.MallDemandDetail;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MallDemandVO extends MallDemand {
    List<MallDemandDetail> demandDetailList;

    public MallDemandVO(MallDemand demand) {
        BeanUtils.copyProperties(demand, this);
    }
}
